From f994e33e3e0f46b1121c874d3e56738080ec2cf4 Mon Sep 17 00:00:00 2001 From: robertl Date: Tue, 28 Oct 2003 23:40:57 +0000 Subject: [PATCH] Fix track timestamp endianness on read . --- mapsource.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapsource.c b/mapsource.c index 3106939bb..669555409 100644 --- a/mapsource.c +++ b/mapsource.c @@ -1260,7 +1260,7 @@ mps_track_r(FILE *mps_file, int mps_ver, route_head **trk) thisWaypoint = xcalloc(sizeof(*thisWaypoint), 1); thisWaypoint->latitude = lat / 2147483648.0 * 180.0; thisWaypoint->longitude = lon / 2147483648.0 * 180.0; - thisWaypoint->creation_time = dateTime; + thisWaypoint->creation_time = le_read32(&dateTime); thisWaypoint->centiseconds = 0; thisWaypoint->altitude = mps_altitude; route_add_wpt(track_head, thisWaypoint); -- 2.30.2